/// <reference path="../../../typings/angularjs/angular-mocks.d.ts" />
/// <reference path="../../../typings/jasmine/jasmine.d.ts" />
/// <reference path="../../../app/scripts/controllers/<%= cameledName.toLowerCase() %>.ts" />

'use strict';

describe('Controller: <%= classedName %>Ctrl', () => {

    // load the controller's module
    beforeEach(module('<%= scriptAppName %>'));

    var <%= classedName %>Ctrl: <%= scriptAppName %>.<%= classedName %>Ctrl,
        scope: <%= scriptAppName %>.I<%= classedName %>Scope;

    // Initialize the controller and a mock scope
    beforeEach(inject(($controller: ng.IControllerService, $rootScope: ng.IRootScopeService) => {
        scope = <any>$rootScope.$new();
        <%= classedName %>Ctrl = $controller('<%= classedName %>Ctrl', {
            $scope: scope
        });
    }));

    it('should attach a list of awesomeThings to the scope', () => {
        expect(scope.awesomeThings.length).toBe(3);
    });
});
